home = {
    URL:{
        a_dir :{//home_a菜单栏点击init函数中ajax url映射
            "h-menu-task" : "/t/m/list",
            "h-menu-record" : "/t/n/recordList",
            "h-menu-check" : "/t/n/checkList",
            "h-menu-project":"/t/project",
            "h-menu-member":"/t/member",
            "h-menu-admin":"/t/admin"
        },
        b_dir :{
            "mission_detail" : function (missionId) {
                return"/t/m/"+missionId+"/detail";
            },
            "daily_detail" : function (dailyId) {
                return "/t/n/"+dailyId+"/dailyDetail";
            },
            "note_detail" : function (noteId){
                return "/t/n/"+noteId+"/noteDetail";
            }
        }
    },
    a :{
        //一级选项栏入口
        init : function(params){
            var menuId = params['menuId'];
            $.ajax({
                type:"GET",
                url:home.URL.a_dir[menuId],
                data:{},
                dataType:"html",
                success: function (result) {
                    $("#home_b").html(result);
                },
                error: function (XMLHttpRequest) {


                }
            });

        }
    },
    b :{
        //二级选项栏入口
        init : function(params){

        },
        getMissionById: function(missionId){
            $.ajax({
                type:"GET",
                url:home.URL.b_dir.mission_detail(missionId),
                data:{},
                dataType:"html",
                success: function (result) {
                    $("#home_c").html("");
                    $("#home_c").html(result);
                }
            });
        },

        getDailyById: function(dailyId){
            $.ajax({
                type:"GET",
                url:home.URL.b_dir.daily_detail(dailyId),
                data:{},
                dataType:"html",
                success: function (result) {
                    $("#home_c").html("");
                    $("#home_c").html(result);
                }
            });
        },
        getNoteById: function(noteId){
            $.ajax({
                type:"GET",
                url:home.URL.b_dir.note_detail(noteId),
                data:{},
                dataType:"html",
                success: function (result) {
                    $("#home_c").html("");
                    $("#home_c").html(result);
                }
            });
        }
    }
}